import request from '@/utils/request'

export function getKnowledgeList(data) {
  return request({
    url: '/knowledge/admin/list',
    method: 'post',
    data
  })
}
export function getKnowledgeListAll(data) {
  return request({
    url: '/knowledge/admin/listAll',
    method: 'get',
    data
  })
}

export function getKnowledgeDetail(params) {
  return request({
    url: '/knowledge/admin/getDetail',
    method: 'get',
    params
  })
}

export function updateKnowledgeDetail(data) {
  return request({
    url: '/knowledge/admin/update',
    method: 'post',
    data
  })
}

export function addKnowledgeDetail(data) {
  return request({
    url: '/knowledge/admin/create',
    method: 'post',
    data
  })
}
export function delKnowledgeDetail(params) {
  return request({
    url: '/knowledge/admin/del',
    method: 'get',
    params
  })
}
